package cn.geoportal.benoserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 转换任务类型表
 * @TableName t_convert_task_type
 */
@TableName(value ="t_convert_task_type")
@Data
public class ConvertTaskType implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JSONField(ordinal = 0)
    @ApiModelProperty(value = "id", required = false, hidden = true)
    private Integer id;

    /**
     * 转换任务类型名称
     */
    @TableField(value = "name")
    @JSONField(ordinal = 1)
    @ApiModelProperty(value = "转换任务类型名称", position = 1, required = true, example = "osgb")
    private String name;

    /**
     * 转换任务类型描述
     */
    @TableField(value = "description")
    @JSONField(ordinal = 2)
    @ApiModelProperty(value = "转换任务类型描述", position = 2, required = false, example = "OSGB转瓦片")
    private String description;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JSONField(ordinal = 3)
    @ApiModelProperty(value = "创建时间", required = false, hidden = true)
    private Date createdat;

    /**
     * 更新时间
     */
    @TableField(value = "updatedat", fill = FieldFill.INSERT_UPDATE)
    @JSONField(ordinal = 4)
    @ApiModelProperty(value = "更新时间", required = false, hidden = true)
    private Date updatedat;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}